package com.sinodata.bsm.common.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * ResPauseRule entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "RES_PAUSE_RULE")
public class ResPauseRule implements java.io.Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 8955137722832761693L;

    // Fields   
    private Long id;
    private Long resId;
    private Integer type;
    private String rule;
    private Integer status;

    // Constructors

    /** default constructor */
    public ResPauseRule() {
    }

    /** minimal constructor */
    public ResPauseRule(Long id) {
        this.id = id;
    }

    /** full constructor */
    public ResPauseRule(Long id, Long resId, Integer type, String rule, Integer status) {
        this.id = id;
        this.resId = resId;
        this.type = type;
        this.rule = rule;
        this.status = status;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
    @SequenceGenerator(name = "sequence", sequenceName = "RES_PAUSE_RULE_SEQ")
    @Column(name = "ID", unique = true, nullable = false, precision = 18, scale = 0)
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "RES_ID", precision = 18, scale = 0)
    public Long getResId() {
        return this.resId;
    }

    public void setResId(Long resId) {
        this.resId = resId;
    }

    @Column(name = "TYPE", precision = 1, scale = 0)
    public Integer getType() {
        return this.type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Column(name = "RULE", length = 1024)
    public String getRule() {
        return this.rule;
    }

    public void setRule(String rule) {
        this.rule = rule;
    }

    @Column(name = "STATUS", precision = 1, scale = 0)
    public Integer getStatus() {
        return this.status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "ResPauseRule [id=" + id + ", resId=" + resId + ", type=" + type + ", rule=" + rule + ", status=" + status + "]";
    }

}